
package carmadness.view;

import java.awt.Color;

/**
 * Stop táblát grafikus felületen megjelenítő osztály.
 * 
 * @author arpi
 * @version 1.0
 * @created 10-Apr-2010 2:32:40 PM
 */
public class GraphicStopSignRenderer extends GraphicRenderer
{
	/**
	 * A renderelést végző metódus.
	 * 
	 * @param object
	 */
	public void render( Object object )
	{
		graphics.setColor( new Color( 240, 50, 10 ) );
		graphics.drawPolygon( new int[] {7, 17, 22, 22, 17, 7, 2, 2 }, new int[] {2, 2, 7, 17, 22, 22, 17, 7 }, 8 );
		graphics.fillPolygon( new int[] {7, 17, 22, 22, 17, 7, 2, 2 }, new int[] {2, 2, 7, 17, 22, 22, 17, 7 }, 8 );
		graphics.setColor( new Color( 255, 255, 255 ) );
		graphics.drawPolygon( new int[] {7, 17, 21, 21, 17, 7, 3, 3 }, new int[] {3, 3, 7, 17, 21, 21, 17, 7 }, 8 );
		graphics.drawPolyline( new int[]{15, 15, 9, 9, 15, 15, 9, 9}, new int[]{8, 7, 7, 12, 12, 17, 17, 16}, 8 );
	}
}
